package unicall.em.services;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.alibaba.fastjson.JSONObject;

import unicall.em.dtos.MediaDto;
import unicall.em.models.Media;

public interface MediaService {
    
    public Media add(MediaDto dto);
    
    public List<Media> queryAll();
    
    public Media findById(String id);
    
    public void deleteById(String id);
    
    public Media update(MediaDto dto);
    
    public JSONObject upload(Media media,String fileName);
    

    public Page<Media> findAll(Specification<Media> specification,Pageable pageable);
    


}
